package o;

import android.content.Context;
import android.content.Intent;
import android.net.Uri;
import com.huawei.hms.framework.network.util.HttpUtils;
import com.huawei.hms.support.api.entity.hwid.HwIDConstant.ACTION;

public class eev implements cue<cuk> {
    public /* synthetic */ void ˋ(Context context, Object obj) {
        ॱ(context, (cuk) obj);
    }

    public void ॱ(Context context, cuk o_cuk) {
        Logger.ˎ("WebMsgHandler", "WebMsgHandler execute");
        try {
            Intent intent = new Intent();
            ॱ(intent);
            intent.setAction(ACTION.HWID_SCHEME_URL);
            String ॱˊ = o_cuk.ॱˊ();
            if (!(ॱˊ.startsWith(HttpUtils.HTTP_PREFIX) || ॱˊ.startsWith("https://"))) {
                ॱˊ = HttpUtils.HTTP_PREFIX + ॱˊ;
            }
            ॱˊ = cud.ˎ(ॱˊ) + "source=" + o_cuk.ᐝ();
            if ("true".equals(o_cuk.ˊॱ())) {
                ॱˊ = cud.ˎ(ॱˊ) + cud.ॱ(true);
            }
            intent.setData(Uri.parse(ॱˊ));
            context.startActivity(intent);
        } catch (Exception e) {
            Logger.ˋ("WebMsgHandler", "onHandle error");
        }
    }

    private void ॱ(Intent intent) {
        intent.setFlags(335544320);
    }
}
